home *** CD-ROM | disk | FTP | other *** search
- --= SID = SIMTEL20 Ada Software Repository Item Description File = SID =--
- -- UNIT NAME : generic package date_package
- -- VERSION : 1.0
- -- REVIEW CODE :
- -- DDN ADDRESS : dgg@aplvax gralia@aplvax
- -- AUTHOR : David G. Gawron
- -- : Dr. Mars J. Gralia
- -- : The Johns Hopkins University
- -- : Applied Physics Laboratory
- -- : Johns Hopkins Road
- -- : Laurel, Maryland 20707
- -- COPYRIGHT : (c) 1986 David G. Gawron, Dr. Mars J. Gralia
- -- DATE CREATED : October 1986
- -- DATE RELEASED : November 1986
- -- DATE LAST UPDATED : Gawron, October 1986
- -- LOCATION : C2MUG
- -- LOCATION : ASR
- -- ENVIRONMENT : DEC VAX 11/750, DEC Ada v1.3
- --= CLASSIFICATION ===============================================--
- -- CATEGORY LEVEL 1 : MATH
- -- CATEGORY LEVEL 2 : Date
- -- CATEGORY LEVEL 3 :
- -- CATEGORY LEVEL 4 :
- -- KEYWORD : Calendar
- -- KEYWORD : Date
- -- KEYWORD : Julian Date
- -- INDEX : Date
- -- INDEX : Julian Date
- -- INDEX : Date Functions
- -- TAXONOMY :
- -- DEPENDENCIES :
- -- SEE ALSO :
- --= FILE LISTING ===============================================--
- -- FILE SPECS : PD:<ADA.MATH>DATE.*
- -- DIRECTORY DISPLAY :
- -- Directory PD:<ADA.MATH>
- -- File Name Byte Count Line Count
- -- --------------- ---------- ----------
- -- DATE.CMM 179 6
- -- DATE.PRO 3380 84
- -- DATE.SRC 52159 1913
- -- =============== ========== ==========
- -- 3 Files 55718 2003
- --= ABSTRACT ===============================================--
- -- This generic package provides arithmetic and logical operations
- -- for dates. It strongly parallels the required CALENDAR
- -- package, but differs primarily in the range of dates handled.
- -- Like CALENDAR, routines such as SPLIT, MONTH, DAY, and YEAR
- -- are available.
- -- The differences between this package and CALENDAR are reflected
- -- in the range of dates, the inclusion of a DAY_NAME function,
- -- and the ability to specify a date with a year and an annual
- -- Julian day number *. A day is the smallest unit of time in
- -- this package.
- -- An important feature is the ability to subtract dates over
- -- the full range of years. Thus, you can for example, calculate
- -- the number of days between 10/15/1986 and 1/1/1988. Another
- -- important feature is the ability to add (or subtract) x number
- -- of days from a date and obtain a date x days in the future
- -- (or past).
- --= REVISION HISTORY ===============================================--
- --
- --
- -- DATE VERSION AUTHOR HISTORY
- -- 10/86 1.0 Gawron Initial release
- --
- --= RELEASE NOTICE ===============================================--
- -- This prologue must be included in all copies of this software.
- --
- -- This software is copyright by the author.
- --
- -- This software is released to the Ada community.
- -- Restrictions on use or distribution: NONE
- --= DISCLAIMER ===============================================--
- -- This software and its documentation are provided "AS IS" and
- -- without any expressed or implied warranties whatsoever. No warranties
- -- as to performance, merchantability, or fitness for a particular
- -- purpose exist.
- -- The user is advised to test the software thoroughly before
- -- relying on it. The user must assume the entire risk and liability of
- -- using this software. In no event shall any person or organization of
- -- people be held responsible for any direct, indirect, consequential or
- -- inconsequential damages or lost profits.
- --======================================================================--
-